package tech.aistar.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tech.aistar.entity.ParperBank;

@Repository
public interface ParperBankMapper {
    @Select("select * from parper_bank where parper_id = ${parperId}")
    ParperBank findparper(String parperId);

    @Select("select parper_name from parper_bank where parper_id = ${parperId}")
    String findparpername(String parperId);

    @Select("select parper_count from parper_bank where parper_id = ${parperId}")
    Long findCount(Long parperId);

    @Update("update parper_bank set parper_count = #{parperCount} where parper_id = #{parperId}")
    Integer updateBank(@Param("parperCount")Long parperCount, @Param("parperId") Long parperId);



}
